package com.dynamite;

import java.awt.event.KeyEvent;

import base.Start;
import base.input.IInput;
import base.input.InputHandler;
import base.living.ILiving;
import base.world.World;

public class WorldFunBoy extends World
{
	private InputHandler theInput = new InputHandler(Start.getWindow());
	
	public void initWorld()
	{
		EntityPlayer thePlayer = new EntityPlayer(64, 64, 0);
		this.livingCreate((ILiving) thePlayer);
		this.theInput.registerKey(KeyEvent.VK_UP, (IInput) thePlayer);
		this.theInput.registerKey(KeyEvent.VK_DOWN, (IInput) thePlayer);
		this.theInput.registerKey(KeyEvent.VK_LEFT, (IInput) thePlayer);
		this.theInput.registerKey(KeyEvent.VK_RIGHT, (IInput) thePlayer);
	}
}
